
import json


def get_upload_dir_path()->str:

    return get_config()['upload_dir_path']


def get_pro_config():
   return get_config()["pro_config"]





def  hidden_browser()->bool:
    return get_config()["hidden_browser"]

def get_db_config():
    return get_config()["db_config"]

def get_config():

    with open(__file__+'./../config.json', 'r', encoding='utf-8') as file:
        return json.load(file)